Let's look at an example of how to model a global function, using parse_line as an example.
让我们看一下怎样对一个通用函数建模的范例,使用parse_line作为例子。
Your goal is to build a simple controller that will know which model and function to run, and then return a JSON object as a response that is usable on the far end of the transaction.
您的目标是构建这样一个简单的控制器:它知道应该运行哪个模型和函数,然后返回一个 JSON 对象作为响应,这个响应可用于事务的远端。
In order to do this, the basic idea is to create a combined user-defined function that first invokes the model creation process and that then extracts the rules and returns them as a result set.
以此为目的,基本的想法是创建一个用户定义组合函数,此函数首先调用模型创建过程,之后再提取规则并将这些规则作为结果集返回。
应用推荐